package com.qisimanxiang.workreport.dalaran.protocol.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * 自启动类
 *
 * @author wangmeng
 * @date 2019-08-05
 */
@ConditionalOnProperty(name = "dalaran.enable", havingValue = "true")
@ComponentScan("com.qisimanxiang.workreport.dalaran.protocol")
@Component
@Slf4j
@EnableConfigurationProperties(DalaranConfig.class)
public class DalaranAutoConfig {

    public DalaranAutoConfig() {
        log.info("DalaranAutoConfig init success");
    }
}
